import request from '@/utils/request'

export function getSysUserSetting(data) {
  return request({
    url: 'userSetting/page',
    method: 'post',
    data
  })
}

export function getSysUserSettingDetail(data) {
  return request({
    url: '/userSetting/' + data,
    method: 'get'
  })
}

export function addSysUserSetting(data) {
  return request({
    url: '/userSetting/add',
    method: 'post',
    data
  })
}

export function editSysUserSetting(data) {
  return request({
    url: '/userSetting/update',
    method: 'post',
    data
  })
}

export function deleteSysUserSetting(data) {
  return request({
    url: '/userSetting/delete/' + data,
    method: 'post'
  })
}
